home *** CD-ROM | disk | FTP | other *** search
- Update To the Ligen Utility, From John Wilson
- ==============================================
-
- Mr Vassbotn,
-
- Having read your article published in Issue 50 of The Delphi Magazine, I
- have successfully been able to implement an excellent debugging tool which I
- feel would otherwise be beyond my ability. I did however have a problem
- using the LiGen utility, which I have since fixed. I thought it might be
- appropriate to send you details of the problem, and how I fixed it...
-
- The Problem
-
- I copied the entire Exception directory from the Cover CD to my
- C:\Program Files\Borland\delphi4\Projects\ directory, I opened FileDumpTest.dpr
- and tried to 'LiGen' it, but the Dos box appeared and flashed away immediately.
- Running LiGen from the command prompt allowed my to see the following:
-
- >Ligen C:\Program Files\Borland\Delphi4\Projects\Except Handler\dumpfiletest.dpr /o /p /v4.0
-
- RTLI Generator/DCC32 launcher for Delphi2 Version 1.0
- **Error** Cannot find project option file "bluh\bluh\dumpfiletest.DOF"
- {really daft directory}
- Press Enter to exit
-
- This I thought might be down to the spaces in my path/file name. It was.
-
- The Solution
-
- I changed the source in LiGen from line 368 as follows:
-
- {John Wilson+ Place ProjectName in quotes to allow for spaces in path/filename}
- DccParms := Concat ('"', ProjectName, '" ', ExtraCmdLine, CtrlParam);
- WriteLn ('Dcc32 parameters: ' +DccParms);
- ErrCode := Exec(DCCName, DccParms);
- {John Wilson+}
-
- John Wilson
- Ethos Business Solutions
- john@ethosmarketing.com
-
- The full (revised) source code is included in this directory.
-
- Thanks for your input, John!
-